Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write transition to bootstrap pipe if the transition is for bootstrap #6357

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

mrmr1993
Copy link
Member

@mrmr1993 mrmr1993 commented Oct 12, 2020

This fixes a 'write to closed pipe' error where we were writing to
transition_writer_ref, then mutating it and killing all of the pipes
that the Transition_frontier_controller writes to when it goes to
handle the message.

The underlying error is that we were (correctly) closing the transition
frontier controller and opening a bootstrap controller, but
(incorrectly) sending the message to the writer pipe before updating it
to point to the bootstrap controller. This behaviour matches the
original version from pre-#3974.

Edit: the diff is inflated by format changes; the diff without whitespace changes is much more indicative of what has changed.

Checklist:

  • Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • All tests pass (CI will check this if you didn't)
  • Serialized types are in stable-versioned modules
  • Does this close issues? List them:

This fixes a 'write to closed pipe' error where we were writing to
`transition_writer_ref`, then mutating it and `kill`ing all of the pipes
that the `Transition_frontier_controller` writes to when it goes to
handle the message.

The underlying error is that we were (correctly) closing the transition
frontier controller and opening a bootstrap controller, but
(incorrectly) sending the message to the writer pipe before updating it
to point to the bootstrap controller. This behaviour matches the
original version from pre-#3974.
@mrmr1993 mrmr1993 added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Oct 12, 2020
@mrmr1993
Copy link
Member Author

This fixes #6084 #6063 #6061 #6059 #6058 #6056 #6053 #6049.

@netlify
Copy link

netlify bot commented Oct 13, 2020

Deploy preview for mina-staging ready!

Built with commit 4b0bee8

https://deploy-preview-6357--mina-staging.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge-into-develop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants